#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>

int main ()
{
  const char* str1 = "hello printf\n";
  const char* str2 = "hello fprintf\n";
  const char* str3 = "hello fputs\n";
  const char* str4 = "hello write\n";

  //C库函数
  printf(str1);
  fprintf(stdout,str2);
  fputs(str3,stdout);

  //系统调用
  write(1,str4,strlen(str4));  

  fork();
  return 0;
}
